# 多阶段构建：构建阶段
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/tomcat:9.0.107-jdk21

# 设置工作目录
WORKDIR /app

COPY target/orange-hire-server-0.0.1-SNAPSHOT.jar app.jar
# 暴露应用端口
EXPOSE 8080

# 运行应用
ENTRYPOINT ["java", "-jar", "app.jar"]